package com.freecloud.framework.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 客户端请求密钥配置信息
 * @Author: maomao
 * @Date: 2019-08-11 17:02
 */
@Configuration
@Getter
public class ClientConfig {

    /**
     * 客户端ID
     */
    @Value("${client.id}")
    private String clientId;

    /**
     * 密钥
     */
    @Value("${client.secret}")
    private String clientSecret;

    /**
     * token-header名
     */
    @Value("${client.token-header}")
    private String clientTokenHeader;

    /**
     * token有效时间
     */
    @Value("${client.expire}")
    private Integer clientExpire;
}
